package com.yinear.grummy.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;

/**
 * AppConfig
 *
 * @author yinz
 * @date 2018/5/10
 */
@Configuration
@PropertySource("app.yml")
public class AppConfig {
    @Autowired
    Environment env;

    @Bean
    public String getEnv() {
        return env.getProperty("c");
    }
}